//
//  UIFont_Ex.swift
//  DawnFoundation
//
//  Created by dawn on 2021/8/29.
//

import UIKit

public extension UIFont {

    static func font(_ fontSize: Double, weight: Weight = .medium) -> UIFont {
        return UIFont.systemFont(ofSize: fontSize.adapter, weight: weight)
    }
    
    static func iconfont(_ fontSize: Double) -> UIFont {
        return UIFont(name: "baseIcon", size: fontSize.adapter) ?? font(fontSize)
    }
    
}
